from django.db import models

from app.models import FMUser


class WishProduct(models.Model):
    user = models.ForeignKey(FMUser, verbose_name=u'用户')
    category = models.CharField(max_length=30, verbose_name=u'商品类型')
    name = models.CharField(max_length=30, verbose_name=u'商品名称')
    brand = models.CharField(max_length=30, verbose_name=u'商品品牌', null=True, blank=True)
    spec = models.CharField(max_length=30, verbose_name=u'商品规格', null=True, blank=True)
    provider = models.CharField(max_length=30, verbose_name=u"供应商", null=True, blank=True)
    price = models.PositiveIntegerField(verbose_name=u'参考价格', null=True, blank=True)
    remark = models.TextField(verbose_name=u'备注', null=True, blank=True)
    contact = models.CharField(max_length=30, verbose_name=u'联系方式')

    class Meta:
        verbose_name = u'新品需求',
        verbose_name_plural = u'新品需求'
